import 'package:json_annotation/json_annotation.dart';

part 'department.g.dart';

///
///
/// 部门
///
@JsonSerializable()
class DepartmentModel {
  /// 部门id
  int deptId;

  /// 部门名称
  String name;

  DepartmentModel({required this.deptId, required this.name});

  factory DepartmentModel.fromJson(Map<String, dynamic> json) => _$DepartmentModelFromJson(json);

  Map<String, dynamic> toJson() => _$DepartmentModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}
